# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=infip
pkgver=0.1
pkgrel=7
groups=('blackarch' 'blackarch-scanner' 'blackarch-misc')
pkgdesc='A python script that checks output from netstat against RBLs from Spamhaus.'
arch=('any')
url='http://packetstormsecurity.com/files/104927/infIP-0.1-Blacklist-Checker.html'
license=('custom:unknown')
depends=('python2' 'python2-httplib2' 'python2-beautifulsoup3')
source=('https://dl.packetstormsecurity.net/UNIX/utilities/infIP.rar')
sha512sums=('cc77c182dd129d93ebd5230e4f6173aa780e7f4bc267e301891ed21dae82d5bff1ccbcca4546d0010eb98ee6558870486c2ceff2147a0c8917be4de565b087a1')

prepare() {
  cd infIP_Package

  sed -i '1i\#!/usr/bin/env python2' infIP/infIP.py
}

package() {
  cd infIP_Package

  install -Dm 755 infIP/infIP.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 infIP_Documentation.docx \
    "$pkgdir/usr/share/$pkgname/infIP_Documentation.docx"
}

